import DefaultTheme from "vitepress/theme";
import './custom.css'

import NilEleUI from "@nil-tools/components";
import "@nil-tools/theme";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

import Demo from "vitepress-theme-demoblock/components/Demo.vue";
import DemoBlock from "vitepress-theme-demoblock/components/DemoBlock.vue";

import { Search } from "@element-plus/icons-vue"

export default {
  ...DefaultTheme,
  enhanceApp({ app }) {
    app.use(ElementPlus);
    app.use(NilEleUI);
    app.component("SearchIcon",Search)
    app.component("Demo", Demo);
    app.component("DemoBlock", DemoBlock);
  },
};
